#!/bin/sh

if grep -qw PaX /proc/$$/status 2>/dev/null; then
	cat >&2 <<-EOF
	!!
	!! ruby-ffi does not work on kernel with PaX, unless you disable MPROTECT
	!! for ruby binary. If you're aware of security implications, execute:
	!!
	!!     apk add paxmark && paxmark -m /usr/bin/ruby
	!!
	EOF
fi
